package com.ruoyi.project.check.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.check.domain.SfcxInformation;
import com.ruoyi.project.check.service.SfcxInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sfgl/sfcx")
public class SfcxInformationController extends BaseController {
    @Autowired
    private SfcxInformationService sfcxInformationService;


    @PreAuthorize("@ss.hasAnyPermi('sfgl:sfcx:list')")
    @GetMapping("/list")
    public TableDataInfo list(SfcxInformation sfcxInformation){
        startPage();
        List<SfcxInformation> list=sfcxInformationService.selectInfoList(sfcxInformation);
        return getDataTable(list);

    }

}
